<?php
	$mod = isset($_GET['mod'])?$_GET['mod']:"";
	if(!$mod) die('error mod');
	
	$action = isset($_GET['act'])?$_GET['act']:"";
	if(!$action) die('error action');
	
	switch ($action) {
		case 'add':
			
			break;
		case 'edit':
			$id = isset($_GET['id'])?$_GET['id']:1;
			
			$class = new $mod();
			$data = $class->get($id);
			
			echo $class->createForm($data) ;
			
			break;
		default:
			
			break;
	}
?>